import 'package:FiduMart/generated/json/base/json_field.dart';
import 'package:FiduMart/generated/json/association_entity.g.dart';
import 'dart:convert';
export 'package:FiduMart/generated/json/association_entity.g.dart';

@JsonSerializable()
class AssociationEntity {
	List<AssociationProject>? project;

	AssociationEntity();

	factory AssociationEntity.fromJson(Map<String, dynamic> json) => $AssociationEntityFromJson(json);

	Map<String, dynamic> toJson() => $AssociationEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class AssociationProject {
	String? symbol;
	String? name;
	String? cmc;
	String? logo;
	int? id;
	@JSONField(name: "pair_id")
	int? pairId;

	AssociationProject();

	factory AssociationProject.fromJson(Map<String, dynamic> json) => $AssociationProjectFromJson(json);

	Map<String, dynamic> toJson() => $AssociationProjectToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}